package com.aliang.shopping.service;

import com.aliang.shopping.common.PageResult;
import com.aliang.shopping.model.dto.business.BusinessSearchDTO;
import com.aliang.shopping.model.dto.login.EmailLoginDTO;
import com.aliang.shopping.model.dto.login.LoginDTO;
import com.aliang.shopping.model.dto.login.PhoneLoginDTO;
import com.aliang.shopping.model.po.Business;
import com.aliang.shopping.model.vo.CommonUserInfoVO;
import com.aliang.shopping.model.vo.business.BusinessExportVO;
import com.aliang.shopping.model.vo.business.BusinessVO;
import com.aliang.shopping.security.auth.Payload;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author ShiBaLover
* @description 针对表【business(商家表)】的数据库操作Service
* @createDate 2024-10-19 14:31:33
*/
public interface BusinessService extends IService<Business> {
    PageResult<BusinessVO> selectPage(BusinessSearchDTO pageDTO);

    List<BusinessExportVO> getExportList(BusinessSearchDTO pageDTO);

    Payload login(LoginDTO loginDTO);

    Payload emailLogin(EmailLoginDTO loginDTO);

    Payload phoneLogin(PhoneLoginDTO loginDTO);

    CommonUserInfoVO getUserInfo(Long id);
}
